package com.example.stringbufferlogger.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.stringbufferlogger.entity.FileDataRecord;
import com.example.stringbufferlogger.mapper.FileDataRecordMapper;
import com.example.stringbufferlogger.service.FileDataRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;

@Service
public class FileDataRecordServiceImpl extends ServiceImpl<FileDataRecordMapper, FileDataRecord> implements FileDataRecordService {

    @Autowired
    private FileDataRecordMapper fileDataRecordMapper;
    @Override
    public String getInterfaceUrlByRequestId(String requestId) {
        return baseMapper.getInterfaceUrlByRequestId(requestId);
    }

    @Override
    public String getRequestIdByInterfaceUrl(String InterfaceUrl) {
        return baseMapper.getRequestIdByInterfaceUrl(InterfaceUrl);
    }


    @Override
    public boolean updateBatchById(Collection<FileDataRecord> entityList) {
        return super.updateBatchById(entityList);
    }
}
